package com.spring.design.prototype;

public class Clenit {
    public static void main(String[] args) {

        Sheep sheep = new Sheep("小一",10,"白色");
        sheep.friend = new Sheep("二二",12,"深白");
        Sheep s2 = (Sheep)sheep.deepClone();

        System.out.println(sheep + " " + sheep.hashCode());
        System.out.println(s2 + " " + s2.hashCode());

    }
}
